import service from '@/api/http';

const homeApi = {
  // 图片广告列表
  advertList: async (params?: object) => await service.get(`/resource/PictureAD`, params),
  details: async (id: any) => await service.get(`/resource/PictureAD/${id}`),
  // 视频广告列表
  videoAdvertList: async (params?: object) => await service.get(`/resource/VideoAD`, params),
  videoDetails: async (id: any) => await service.get(`/resource/VideoAD/${id}`),
  // 电影列表
  moviesList: async (params?: object) => await service.get(`/resource/movie`, params),
  moviesDetails: async (id: any) => await service.get(`/resource/movie/${id}`),
};

export default homeApi;
